import { createStore } from 'vuex'
const store = createStore({
    state: {
        activeIndex: 0,//当前激活的tab
    },
    mutations: {
        setActiveIndex(state, index) {
            state.activeIndex = index
        }
    },
})
export default store